const conditions = [
  // 字符串类型字段 - 编号
  {
    name: 'dictType.code',
    comments: '编号',
    tag: 'el-input',
    queryType: 'like',
    operations: [
      { value: 'like', label: '包含' },
      { value: 'not like', label: '不包含' },
      { value: '=', label: '等于' },
      { value: '<>', label: '不等于' }
    ],
    attribute: {}
  },
  // 字符串类型字段 - 名称
  {
    name: 'dictType.name',
    comments: '名称',
    tag: 'el-input',
    queryType: 'like',
    operations: [
      { value: 'like', label: '包含' },
      { value: 'not like', label: '不包含' },
      { value: '=', label: '等于' },
      { value: '<>', label: '不等于' }
    ],
    attribute: {}
  },
  // 布尔类型字段 - 是否系统级
  {
    name: 'dictType.is_system',
    comments: '是否系统级',
    tag: 'el-switch',
    queryType: '=',
    operations: [
      { value: '=', label: '等于' },
      { value: '<>', label: '不等于' }
    ],
    attribute: { 'active-value': '1', 'inactive-value': '0' }
  },
  // 字符串类型字段 - 备注信息
  {
    name: 'dictType.remarks',
    comments: '备注信息',
    tag: 'el-input',
    queryType: 'like',
    operations: [
      { value: 'like', label: '包含' },
      { value: 'not like', label: '不包含' },
      { value: '=', label: '等于' },
      { value: '<>', label: '不等于' }
    ],
    attribute: {}
  },
  // 创建者
  {
    name: 'dictType.create_by',
    comments: '创建者',
    tag: 'el-input',
    queryType: 'like',
    operations: [
      { value: 'like', label: '包含' },
      { value: 'not like', label: '不包含' },
      { value: '=', label: '等于' },
      { value: '<>', label: '不等于' }
    ],
    attribute: {}
  },
  // 创建时间
  {
    name: 'dictType.create_date',
    comments: '创建时间',
    tag: 'el-date-picker',
    queryType: 'between',
    operations: [
      { value: '=', label: '等于' },
      { value: '<>', label: '不等于' },
      { value: 'between', label: '介于' },
      { value: 'not between', label: '不介于' }
    ],
    attribute: { type: 'datetime', 'value-format': 'YYYY-MM-DD HH:mm:ss' }
  },
  // 更新者
  {
    name: 'dictType.update_by',
    comments: '更新者',
    tag: 'el-input',
    queryType: 'like',
    operations: [
      { value: 'like', label: '包含' },
      { value: 'not like', label: '不包含' },
      { value: '=', label: '等于' },
      { value: '<>', label: '不等于' }
    ],
    attribute: {}
  },
  // 更新时间
  {
    name: 'dictType.update_date',
    comments: '更新时间',
    tag: 'el-date-picker',
    queryType: 'between',
    operations: [
      { value: '=', label: '等于' },
      { value: '<>', label: '不等于' },
      { value: 'between', label: '介于' },
      { value: 'not between', label: '不介于' }
    ],
    attribute: { type: 'datetime', 'value-format': 'YYYY-MM-DD HH:mm:ss' }
  }
]

const meta = [
  {
    id: 'sys_dict_type',
    name: '字典类型表',
    conditionPanel: conditions,
    type: 'main',
    dataRules: []
  }
]

export default meta 